package cn.rongdao.jrkabao.model.information;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.Map;

import cn.rongdao.jrkabao.bean.information.apply.ApplyInfoBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/5
 */

public class GetMyOwnLoanIncreaseAmountModel extends BaseSuDaiModel {

    public static GetMyOwnLoanIncreaseAmountModel getInstance() {
        return getPresent(GetMyOwnLoanIncreaseAmountModel.class);
    }

    public void execute(Map<String, String> map, Observer<ApplyInfoBean> observer) {
        addParamStrings(map);
        Observable<ApplyInfoBean> observable = mServletApi.getMyOwnLoanIncreaseAmountBean(mParams).map(new HttpFunction<ApplyInfoBean>());
        toSubscribe(observable, observer);
    }
}